# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
# Contributor: Peter Lewis <plewis@aur.archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks@xsmail.com>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=ascii
pkgver=3.18
pkgrel=3
pkgdesc='Utility for conversion between various byte representations and the ASCII character table'
arch=('loong64' 'x86_64')
url='http://www.catb.org/~esr/ascii'
license=('BSD')
depends=('glibc')
source=("${pkgname}-${pkgver}.tar.gz::http://www.catb.org/~esr/ascii/${pkgname}-${pkgver}.tar.gz")
sha512sums=('f3a4354971ccbdb01a6eea4ee46818bccfef0fec8d640f0eeafa984a9116fcb829fe7979488bfe62744374e8783678b99710e09fcc2ddfc6c4068ba08ab73d5d')

build() {
  cd "${pkgname}-${pkgver}"
  make
}

package() {
  cd "${pkgname}-${pkgver}"

  install -D -m755 ascii "${pkgdir}/usr/bin/ascii"
  install -D -m644 ascii.1 "${pkgdir}/usr/share/man/man1/ascii.1"
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
